home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 49 / Amiga Format CD49 (2000-01-17)(Future Publishing)(GB)(Track 1 of 3)[!][issue 2000-02].iso / -serious- / programming / c / pmm / batch / makestublib.s < prev    next >
AmigaDOS Script File  |  1999-11-30  |  2KB  |  80 lines

  1. .KEY NAME,FD
  2. .BRA {
  3. .KET }
  4.  
  5. FailAt 99999999
  6.  
  7. Cd Lib:
  8.  
  9. If NOT EXISTS LibStubs/{NAME}
  10.     MakeDir LibStubs/{NAME}
  11. EndIf
  12. If NOT EXISTS AutoLib
  13.     MakeDir AutoLib
  14. EndIf
  15.  
  16. Echo "{FD}"
  17.  
  18. PmmTool -n {FD} Lib:{NAME}.Lib
  19.  
  20. If WARN
  21.     Cd Lib:AutoLib
  22.     GenAuto {FD}
  23.     Cd Lib:LibStubs/{NAME}
  24.     Delete #? ALL
  25.     MakeDir STD
  26.     MakeDir 040
  27.     MakeDir PPC
  28.     MakeDir WOS
  29.     Delete Lib:{NAME}.#?
  30.     Delete Lib:{NAME}_#?
  31.  
  32.     Cd Lib:LibStubs/{NAME}/STD
  33.     FD2Lib {FD}
  34.     List #?.s LFormat="PhxAss %s" > Lib:LibStubs/{NAME}/Make_{Name}.AsmSTD
  35.     Execute Lib:LibStubs/{NAME}/Make_{Name}.AsmSTD
  36.     List #?.o LFORMAT="PmmLibr R Lib:{NAME} %m" > Lib:LibStubs/{NAME}/Make_{Name}.LibSTD
  37.     Execute Lib:LibStubs/{NAME}/Make_{Name}.LibSTD
  38. Else
  39.     Echo "{NAME}.Lib ist aktuell!"
  40. EndIf
  41.  
  42. PmmTool -n {FD} Lib:{NAME}_040.Lib
  43.  
  44. If WARN
  45.     Cd Lib:LibStubs/{NAME}/040
  46.     FD2Lib -40 {FD}
  47.     List #?.s LFormat="PhxAss %s" > Lib:LibStubs/{NAME}/Make_{Name}.Asm040
  48.     Execute Lib:LibStubs/{NAME}/Make_{Name}.Asm040
  49.     List #?.o LFORMAT="PmmLibr R Lib:{NAME}_040 %m" > Lib:LibStubs/{NAME}/Make_{Name}.Lib040
  50.     Execute Lib:LibStubs/{NAME}/Make_{Name}.Lib040
  51. Else
  52.     Echo "{NAME}_040.Lib ist aktuell!"
  53. EndIf
  54.  
  55. PmmTool -n {FD} Lib:{NAME}_PPC.a
  56.  
  57. If WARN
  58.     Cd Lib:LibStubs/{NAME}/PPC
  59.     FD2LibPPC {FD}
  60.     List #?.s LFormat="vbin:Pasm_wos -R -F1 -O65536 %s" > Lib:LibStubs/{NAME}/Make_{Name}.AsmPPC
  61.     Execute Lib:LibStubs/{NAME}/Make_{Name}.AsmPPC
  62.     List #?.o LFORMAT="ppc-amigaos-ar qv Lib:{NAME}_PPC.a %n" > Lib:LibStubs/{NAME}/Make_{Name}.LibPPC
  63.     Execute Lib:LibStubs/{NAME}/Make_{Name}.LibPPC
  64. Else
  65.     Echo "{NAME}_PPC.a ist aktuell!"
  66. EndIf
  67.  
  68. PmmTool -n {FD} Lib:{NAME}_WOS.Lib
  69.  
  70. If WARN
  71.     Cd Lib:LibStubs/{NAME}/WOS
  72.     FD2LibWOS {FD}
  73.     List #?.s LFormat="vbin:Pasm_wos -F2 -O65536 %s" > Lib:LibStubs/{NAME}/Make_{Name}.AsmWOS
  74.     Execute Lib:LibStubs/{NAME}/Make_{Name}.AsmWOS
  75.     List #?.o LFORMAT="PmmLibr R Lib:{NAME}_WOS %m" > Lib:LibStubs/{NAME}/Make_{Name}.LibWOS
  76.     Execute Lib:LibStubs/{NAME}/Make_{Name}.LibWOS
  77. Else
  78.     Echo "{NAME}_WOS.Lib ist aktuell!"
  79. EndIf
  80.